<?php
$tdataproforma_invoices=array();
	$tdataproforma_invoices[".NumberOfChars"]=80; 
	$tdataproforma_invoices[".ShortName"]="proforma_invoices";
	$tdataproforma_invoices[".OwnerID"]="";
	$tdataproforma_invoices[".OriginalTable"]="proforma_invoices";


	
//	field labels
$fieldLabelsproforma_invoices = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsproforma_invoices["English"]=array();
	$fieldToolTipsproforma_invoices["English"]=array();
	$fieldLabelsproforma_invoices["English"]["id"] = "Id";
	$fieldToolTipsproforma_invoices["English"]["id"] = "";
	$fieldLabelsproforma_invoices["English"]["account_id"] = "Account";
	$fieldToolTipsproforma_invoices["English"]["account_id"] = "";
	$fieldLabelsproforma_invoices["English"]["buyer_id"] = "Buyer";
	$fieldToolTipsproforma_invoices["English"]["buyer_id"] = "";
	$fieldLabelsproforma_invoices["English"]["consignee_id"] = "Consignee";
	$fieldToolTipsproforma_invoices["English"]["consignee_id"] = "";
	$fieldLabelsproforma_invoices["English"]["notify_id"] = "Notify";
	$fieldToolTipsproforma_invoices["English"]["notify_id"] = "";
	$fieldLabelsproforma_invoices["English"]["proforma_invoice_no"] = "Proforma Invoice No";
	$fieldToolTipsproforma_invoices["English"]["proforma_invoice_no"] = "";
	$fieldLabelsproforma_invoices["English"]["proforma_invoice_date"] = "Proforma Invoice Date";
	$fieldToolTipsproforma_invoices["English"]["proforma_invoice_date"] = "";
	$fieldLabelsproforma_invoices["English"]["customer_reference"] = "Customer Reference";
	$fieldToolTipsproforma_invoices["English"]["customer_reference"] = "";
	$fieldLabelsproforma_invoices["English"]["customer_reference_date"] = "Customer Reference Date";
	$fieldToolTipsproforma_invoices["English"]["customer_reference_date"] = "";
	$fieldLabelsproforma_invoices["English"]["commercial_invoice_no"] = "Invoice No";
	$fieldToolTipsproforma_invoices["English"]["commercial_invoice_no"] = "";
	$fieldLabelsproforma_invoices["English"]["commercial_invoice_date"] = "Invoice Date";
	$fieldToolTipsproforma_invoices["English"]["commercial_invoice_date"] = "";
	$fieldLabelsproforma_invoices["English"]["term_of_sale1"] = "Term Of Sale 1";
	$fieldToolTipsproforma_invoices["English"]["term_of_sale1"] = "";
	$fieldLabelsproforma_invoices["English"]["term_of_sale2"] = "Term Of Sale 2";
	$fieldToolTipsproforma_invoices["English"]["term_of_sale2"] = "";
	$fieldLabelsproforma_invoices["English"]["shipment_mode_id"] = "Shipment Mode";
	$fieldToolTipsproforma_invoices["English"]["shipment_mode_id"] = "";
	$fieldLabelsproforma_invoices["English"]["estimated_shipment_date"] = "Estimated Shipment Date";
	$fieldToolTipsproforma_invoices["English"]["estimated_shipment_date"] = "";
	$fieldLabelsproforma_invoices["English"]["estimated_shipment_date_custom"] = "Estimated Shipment Date Custom";
	$fieldToolTipsproforma_invoices["English"]["estimated_shipment_date_custom"] = "";
	$fieldLabelsproforma_invoices["English"]["additional_charges_frieght_type"] = "Additional Charges Frieght Type";
	$fieldToolTipsproforma_invoices["English"]["additional_charges_frieght_type"] = "";
	$fieldLabelsproforma_invoices["English"]["additional_charges_legalization"] = "Additional Charges Legalization";
	$fieldToolTipsproforma_invoices["English"]["additional_charges_legalization"] = "";
	$fieldLabelsproforma_invoices["English"]["additional_charges_inspection"] = "Additional Charges Inspection";
	$fieldToolTipsproforma_invoices["English"]["additional_charges_inspection"] = "";
	$fieldLabelsproforma_invoices["English"]["additional_charges_special_packing"] = "Additional Charges Special Packing";
	$fieldToolTipsproforma_invoices["English"]["additional_charges_special_packing"] = "";
	$fieldLabelsproforma_invoices["English"]["others1_key"] = "Others 1 ";
	$fieldToolTipsproforma_invoices["English"]["others1_key"] = "";
	$fieldLabelsproforma_invoices["English"]["others2_key"] = "Others 2 ";
	$fieldToolTipsproforma_invoices["English"]["others2_key"] = "";
	$fieldLabelsproforma_invoices["English"]["others3_key"] = "Others 3 ";
	$fieldToolTipsproforma_invoices["English"]["others3_key"] = "";
	$fieldLabelsproforma_invoices["English"]["others1_value"] = "Others 1 Value";
	$fieldToolTipsproforma_invoices["English"]["others1_value"] = "";
	$fieldLabelsproforma_invoices["English"]["others2_value"] = "Others 2 Value";
	$fieldToolTipsproforma_invoices["English"]["others2_value"] = "";
	$fieldLabelsproforma_invoices["English"]["others3_value"] = "Others 3 Value";
	$fieldToolTipsproforma_invoices["English"]["others3_value"] = "";
	$fieldLabelsproforma_invoices["English"]["payment_term_id"] = "Payment Term";
	$fieldToolTipsproforma_invoices["English"]["payment_term_id"] = "";
	$fieldLabelsproforma_invoices["English"]["payment_term_other"] = "Payment Term Other";
	$fieldToolTipsproforma_invoices["English"]["payment_term_other"] = "";
	$fieldLabelsproforma_invoices["English"]["bank_name_id"] = "Bank Name";
	$fieldToolTipsproforma_invoices["English"]["bank_name_id"] = "";
	$fieldLabelsproforma_invoices["English"]["bank_term1"] = "Bank Term 1";
	$fieldToolTipsproforma_invoices["English"]["bank_term1"] = "";
	$fieldLabelsproforma_invoices["English"]["bank_term2"] = "Bank Term 2";
	$fieldToolTipsproforma_invoices["English"]["bank_term2"] = "";
	$fieldLabelsproforma_invoices["English"]["currency_id"] = "Currency ";
	$fieldToolTipsproforma_invoices["English"]["currency_id"] = "";
	$fieldLabelsproforma_invoices["English"]["terms_and_conditions"] = "Terms And Conditions";
	$fieldToolTipsproforma_invoices["English"]["terms_and_conditions"] = "";
	$fieldLabelsproforma_invoices["English"]["account_address"] = "Account Address";
	$fieldToolTipsproforma_invoices["English"]["account_address"] = "";
	$fieldLabelsproforma_invoices["English"]["buyer_address"] = "Buyer Address";
	$fieldToolTipsproforma_invoices["English"]["buyer_address"] = "";
	$fieldLabelsproforma_invoices["English"]["consignee_address"] = "Consignee Address";
	$fieldToolTipsproforma_invoices["English"]["consignee_address"] = "";
	$fieldLabelsproforma_invoices["English"]["notify_address"] = "Notify Address";
	$fieldToolTipsproforma_invoices["English"]["notify_address"] = "";
	if (count($fieldToolTipsproforma_invoices["English"])){
		$tdataproforma_invoices[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Hong Kong S.A.R.)")
{
	$fieldLabelsproforma_invoices["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldLabelsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["id"] = "Id";
	$fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["id"] = "";
	$fieldLabelsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["account_id"] = "Account Id";
	$fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["account_id"] = "";
	$fieldLabelsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["buyer_id"] = "Buyer Id";
	$fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["buyer_id"] = "";
	$fieldLabelsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["consignee_id"] = "Consignee Id";
	$fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["consignee_id"] = "";
	$fieldLabelsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["notify_id"] = "Notify Id";
	$fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["notify_id"] = "";
	$fieldLabelsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["proforma_invoice_no"] = "Proforma Invoice No";
	$fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["proforma_invoice_no"] = "";
	$fieldLabelsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["proforma_invoice_date"] = "Proforma Invoice Date";
	$fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["proforma_invoice_date"] = "";
	$fieldLabelsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["customer_reference"] = "Customer Reference";
	$fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["customer_reference"] = "";
	$fieldLabelsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["customer_reference_date"] = "Customer Reference Date";
	$fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["customer_reference_date"] = "";
	$fieldLabelsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["commercial_invoice_no"] = "Commercial Invoice No";
	$fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["commercial_invoice_no"] = "";
	$fieldLabelsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["commercial_invoice_date"] = "Commercial Invoice Date";
	$fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["commercial_invoice_date"] = "";
	$fieldLabelsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["term_of_sale1"] = "Term Of Sale1";
	$fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["term_of_sale1"] = "";
	$fieldLabelsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["term_of_sale2"] = "Term Of Sale2";
	$fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["term_of_sale2"] = "";
	$fieldLabelsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["shipment_mode_id"] = "Shipment Mode Id";
	$fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["shipment_mode_id"] = "";
	$fieldLabelsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["estimated_shipment_date"] = "Estimated Shipment Date";
	$fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["estimated_shipment_date"] = "";
	$fieldLabelsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["estimated_shipment_date_custom"] = "Estimated Shipment Date Custom";
	$fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["estimated_shipment_date_custom"] = "";
	$fieldLabelsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["additional_charges_frieght_type"] = "Additional Charges Frieght Type";
	$fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["additional_charges_frieght_type"] = "";
	$fieldLabelsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["additional_charges_legalization"] = "Additional Charges Legalization";
	$fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["additional_charges_legalization"] = "";
	$fieldLabelsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["additional_charges_inspection"] = "Additional Charges Inspection";
	$fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["additional_charges_inspection"] = "";
	$fieldLabelsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["additional_charges_special_packing"] = "Additional Charges Special Packing";
	$fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["additional_charges_special_packing"] = "";
	$fieldLabelsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["others1_key"] = "Others1 Key";
	$fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["others1_key"] = "";
	$fieldLabelsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["others2_key"] = "Others2 Key";
	$fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["others2_key"] = "";
	$fieldLabelsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["others3_key"] = "Others3 Key";
	$fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["others3_key"] = "";
	$fieldLabelsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["others1_value"] = "Others1 Value";
	$fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["others1_value"] = "";
	$fieldLabelsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["others2_value"] = "Others2 Value";
	$fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["others2_value"] = "";
	$fieldLabelsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["others3_value"] = "Others3 Value";
	$fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["others3_value"] = "";
	$fieldLabelsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["payment_term_id"] = "Payment Term Id";
	$fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["payment_term_id"] = "";
	$fieldLabelsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["payment_term_other"] = "Payment Term Other";
	$fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["payment_term_other"] = "";
	$fieldLabelsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["bank_name_id"] = "Bank Name Id";
	$fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["bank_name_id"] = "";
	$fieldLabelsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["bank_term1"] = "Bank Term1";
	$fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["bank_term1"] = "";
	$fieldLabelsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["bank_term2"] = "Bank Term2";
	$fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["bank_term2"] = "";
	$fieldLabelsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["currency_id"] = "Currency Id";
	$fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["currency_id"] = "";
	$fieldLabelsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["terms_and_conditions"] = "Terms And Conditions";
	$fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["terms_and_conditions"] = "";
	$fieldLabelsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["account_address"] = "Account Address";
	$fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["account_address"] = "";
	$fieldLabelsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["buyer_address"] = "Buyer Address";
	$fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["buyer_address"] = "";
	$fieldLabelsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["consignee_address"] = "Consignee Address";
	$fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["consignee_address"] = "";
	$fieldLabelsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["notify_address"] = "Notify Address";
	$fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"]["notify_address"] = "";
	if (count($fieldToolTipsproforma_invoices["Chinese (Hong Kong S.A.R.)"])){
		$tdataproforma_invoices[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Taiwan)")
{
	$fieldLabelsproforma_invoices["Chinese (Taiwan)"]=array();
	$fieldToolTipsproforma_invoices["Chinese (Taiwan)"]=array();
	$fieldLabelsproforma_invoices["Chinese (Taiwan)"]["id"] = "Id";
	$fieldToolTipsproforma_invoices["Chinese (Taiwan)"]["id"] = "";
	$fieldLabelsproforma_invoices["Chinese (Taiwan)"]["account_id"] = "Account Id";
	$fieldToolTipsproforma_invoices["Chinese (Taiwan)"]["account_id"] = "";
	$fieldLabelsproforma_invoices["Chinese (Taiwan)"]["buyer_id"] = "Buyer Id";
	$fieldToolTipsproforma_invoices["Chinese (Taiwan)"]["buyer_id"] = "";
	$fieldLabelsproforma_invoices["Chinese (Taiwan)"]["consignee_id"] = "Consignee Id";
	$fieldToolTipsproforma_invoices["Chinese (Taiwan)"]["consignee_id"] = "";
	$fieldLabelsproforma_invoices["Chinese (Taiwan)"]["notify_id"] = "Notify Id";
	$fieldToolTipsproforma_invoices["Chinese (Taiwan)"]["notify_id"] = "";
	$fieldLabelsproforma_invoices["Chinese (Taiwan)"]["proforma_invoice_no"] = "Proforma Invoice No";
	$fieldToolTipsproforma_invoices["Chinese (Taiwan)"]["proforma_invoice_no"] = "";
	$fieldLabelsproforma_invoices["Chinese (Taiwan)"]["proforma_invoice_date"] = "Proforma Invoice Date";
	$fieldToolTipsproforma_invoices["Chinese (Taiwan)"]["proforma_invoice_date"] = "";
	$fieldLabelsproforma_invoices["Chinese (Taiwan)"]["customer_reference"] = "Customer Reference";
	$fieldToolTipsproforma_invoices["Chinese (Taiwan)"]["customer_reference"] = "";
	$fieldLabelsproforma_invoices["Chinese (Taiwan)"]["customer_reference_date"] = "Customer Reference Date";
	$fieldToolTipsproforma_invoices["Chinese (Taiwan)"]["customer_reference_date"] = "";
	$fieldLabelsproforma_invoices["Chinese (Taiwan)"]["commercial_invoice_no"] = "Invoice No";
	$fieldToolTipsproforma_invoices["Chinese (Taiwan)"]["commercial_invoice_no"] = "";
	$fieldLabelsproforma_invoices["Chinese (Taiwan)"]["commercial_invoice_date"] = "Invoice Date";
	$fieldToolTipsproforma_invoices["Chinese (Taiwan)"]["commercial_invoice_date"] = "";
	$fieldLabelsproforma_invoices["Chinese (Taiwan)"]["term_of_sale1"] = "Term Of Sale1";
	$fieldToolTipsproforma_invoices["Chinese (Taiwan)"]["term_of_sale1"] = "";
	$fieldLabelsproforma_invoices["Chinese (Taiwan)"]["term_of_sale2"] = "Term Of Sale2";
	$fieldToolTipsproforma_invoices["Chinese (Taiwan)"]["term_of_sale2"] = "";
	$fieldLabelsproforma_invoices["Chinese (Taiwan)"]["shipment_mode_id"] = "Shipment Mode Id";
	$fieldToolTipsproforma_invoices["Chinese (Taiwan)"]["shipment_mode_id"] = "";
	$fieldLabelsproforma_invoices["Chinese (Taiwan)"]["estimated_shipment_date"] = "Estimated Shipment Date";
	$fieldToolTipsproforma_invoices["Chinese (Taiwan)"]["estimated_shipment_date"] = "";
	$fieldLabelsproforma_invoices["Chinese (Taiwan)"]["estimated_shipment_date_custom"] = "Estimated Shipment Date Custom";
	$fieldToolTipsproforma_invoices["Chinese (Taiwan)"]["estimated_shipment_date_custom"] = "";
	$fieldLabelsproforma_invoices["Chinese (Taiwan)"]["additional_charges_frieght_type"] = "Additional Charges Frieght Type";
	$fieldToolTipsproforma_invoices["Chinese (Taiwan)"]["additional_charges_frieght_type"] = "";
	$fieldLabelsproforma_invoices["Chinese (Taiwan)"]["additional_charges_legalization"] = "Additional Charges Legalization";
	$fieldToolTipsproforma_invoices["Chinese (Taiwan)"]["additional_charges_legalization"] = "";
	$fieldLabelsproforma_invoices["Chinese (Taiwan)"]["additional_charges_inspection"] = "Additional Charges Inspection";
	$fieldToolTipsproforma_invoices["Chinese (Taiwan)"]["additional_charges_inspection"] = "";
	$fieldLabelsproforma_invoices["Chinese (Taiwan)"]["additional_charges_special_packing"] = "Additional Charges Special Packing";
	$fieldToolTipsproforma_invoices["Chinese (Taiwan)"]["additional_charges_special_packing"] = "";
	$fieldLabelsproforma_invoices["Chinese (Taiwan)"]["others1_key"] = "Others1 Key";
	$fieldToolTipsproforma_invoices["Chinese (Taiwan)"]["others1_key"] = "";
	$fieldLabelsproforma_invoices["Chinese (Taiwan)"]["others2_key"] = "Others2 Key";
	$fieldToolTipsproforma_invoices["Chinese (Taiwan)"]["others2_key"] = "";
	$fieldLabelsproforma_invoices["Chinese (Taiwan)"]["others3_key"] = "Others3 Key";
	$fieldToolTipsproforma_invoices["Chinese (Taiwan)"]["others3_key"] = "";
	$fieldLabelsproforma_invoices["Chinese (Taiwan)"]["others1_value"] = "Others1 Value";
	$fieldToolTipsproforma_invoices["Chinese (Taiwan)"]["others1_value"] = "";
	$fieldLabelsproforma_invoices["Chinese (Taiwan)"]["others2_value"] = "Others2 Value";
	$fieldToolTipsproforma_invoices["Chinese (Taiwan)"]["others2_value"] = "";
	$fieldLabelsproforma_invoices["Chinese (Taiwan)"]["others3_value"] = "Others3 Value";
	$fieldToolTipsproforma_invoices["Chinese (Taiwan)"]["others3_value"] = "";
	$fieldLabelsproforma_invoices["Chinese (Taiwan)"]["payment_term_id"] = "Payment Term Id";
	$fieldToolTipsproforma_invoices["Chinese (Taiwan)"]["payment_term_id"] = "";
	$fieldLabelsproforma_invoices["Chinese (Taiwan)"]["payment_term_other"] = "Payment Term Other";
	$fieldToolTipsproforma_invoices["Chinese (Taiwan)"]["payment_term_other"] = "";
	$fieldLabelsproforma_invoices["Chinese (Taiwan)"]["bank_name_id"] = "Bank Name Id";
	$fieldToolTipsproforma_invoices["Chinese (Taiwan)"]["bank_name_id"] = "";
	$fieldLabelsproforma_invoices["Chinese (Taiwan)"]["bank_term1"] = "Bank Term1";
	$fieldToolTipsproforma_invoices["Chinese (Taiwan)"]["bank_term1"] = "";
	$fieldLabelsproforma_invoices["Chinese (Taiwan)"]["bank_term2"] = "Bank Term2";
	$fieldToolTipsproforma_invoices["Chinese (Taiwan)"]["bank_term2"] = "";
	$fieldLabelsproforma_invoices["Chinese (Taiwan)"]["currency_id"] = "Currency";
	$fieldToolTipsproforma_invoices["Chinese (Taiwan)"]["currency_id"] = "";
	$fieldLabelsproforma_invoices["Chinese (Taiwan)"]["terms_and_conditions"] = "Terms And Conditions";
	$fieldToolTipsproforma_invoices["Chinese (Taiwan)"]["terms_and_conditions"] = "";
	$fieldLabelsproforma_invoices["Chinese (Taiwan)"]["account_address"] = "Account Address";
	$fieldToolTipsproforma_invoices["Chinese (Taiwan)"]["account_address"] = "";
	$fieldLabelsproforma_invoices["Chinese (Taiwan)"]["buyer_address"] = "Buyer Address";
	$fieldToolTipsproforma_invoices["Chinese (Taiwan)"]["buyer_address"] = "";
	$fieldLabelsproforma_invoices["Chinese (Taiwan)"]["consignee_address"] = "Consignee Address";
	$fieldToolTipsproforma_invoices["Chinese (Taiwan)"]["consignee_address"] = "";
	$fieldLabelsproforma_invoices["Chinese (Taiwan)"]["notify_address"] = "Notify Address";
	$fieldToolTipsproforma_invoices["Chinese (Taiwan)"]["notify_address"] = "";
	if (count($fieldToolTipsproforma_invoices["Chinese (Taiwan)"])){
		$tdataproforma_invoices[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="French")
{
	$fieldLabelsproforma_invoices["French"]=array();
	$fieldToolTipsproforma_invoices["French"]=array();
	$fieldLabelsproforma_invoices["French"]["id"] = "Id";
	$fieldToolTipsproforma_invoices["French"]["id"] = "";
	$fieldLabelsproforma_invoices["French"]["account_id"] = "Account Id";
	$fieldToolTipsproforma_invoices["French"]["account_id"] = "";
	$fieldLabelsproforma_invoices["French"]["buyer_id"] = "Buyer Id";
	$fieldToolTipsproforma_invoices["French"]["buyer_id"] = "";
	$fieldLabelsproforma_invoices["French"]["consignee_id"] = "Consignee Id";
	$fieldToolTipsproforma_invoices["French"]["consignee_id"] = "";
	$fieldLabelsproforma_invoices["French"]["notify_id"] = "Notify Id";
	$fieldToolTipsproforma_invoices["French"]["notify_id"] = "";
	$fieldLabelsproforma_invoices["French"]["proforma_invoice_no"] = "Proforma Invoice No";
	$fieldToolTipsproforma_invoices["French"]["proforma_invoice_no"] = "";
	$fieldLabelsproforma_invoices["French"]["proforma_invoice_date"] = "Proforma Invoice Date";
	$fieldToolTipsproforma_invoices["French"]["proforma_invoice_date"] = "";
	$fieldLabelsproforma_invoices["French"]["customer_reference"] = "Customer Reference";
	$fieldToolTipsproforma_invoices["French"]["customer_reference"] = "";
	$fieldLabelsproforma_invoices["French"]["customer_reference_date"] = "Customer Reference Date";
	$fieldToolTipsproforma_invoices["French"]["customer_reference_date"] = "";
	$fieldLabelsproforma_invoices["French"]["commercial_invoice_no"] = "Commercial Invoice No";
	$fieldToolTipsproforma_invoices["French"]["commercial_invoice_no"] = "";
	$fieldLabelsproforma_invoices["French"]["commercial_invoice_date"] = "Commercial Invoice Date";
	$fieldToolTipsproforma_invoices["French"]["commercial_invoice_date"] = "";
	$fieldLabelsproforma_invoices["French"]["term_of_sale1"] = "Term Of Sale1";
	$fieldToolTipsproforma_invoices["French"]["term_of_sale1"] = "";
	$fieldLabelsproforma_invoices["French"]["term_of_sale2"] = "Term Of Sale2";
	$fieldToolTipsproforma_invoices["French"]["term_of_sale2"] = "";
	$fieldLabelsproforma_invoices["French"]["shipment_mode_id"] = "Shipment Mode Id";
	$fieldToolTipsproforma_invoices["French"]["shipment_mode_id"] = "";
	$fieldLabelsproforma_invoices["French"]["estimated_shipment_date"] = "Estimated Shipment Date";
	$fieldToolTipsproforma_invoices["French"]["estimated_shipment_date"] = "";
	$fieldLabelsproforma_invoices["French"]["estimated_shipment_date_custom"] = "Estimated Shipment Date Custom";
	$fieldToolTipsproforma_invoices["French"]["estimated_shipment_date_custom"] = "";
	$fieldLabelsproforma_invoices["French"]["additional_charges_frieght_type"] = "Additional Charges Frieght Type";
	$fieldToolTipsproforma_invoices["French"]["additional_charges_frieght_type"] = "";
	$fieldLabelsproforma_invoices["French"]["additional_charges_legalization"] = "Additional Charges Legalization";
	$fieldToolTipsproforma_invoices["French"]["additional_charges_legalization"] = "";
	$fieldLabelsproforma_invoices["French"]["additional_charges_inspection"] = "Additional Charges Inspection";
	$fieldToolTipsproforma_invoices["French"]["additional_charges_inspection"] = "";
	$fieldLabelsproforma_invoices["French"]["additional_charges_special_packing"] = "Additional Charges Special Packing";
	$fieldToolTipsproforma_invoices["French"]["additional_charges_special_packing"] = "";
	$fieldLabelsproforma_invoices["French"]["others1_key"] = "Others1 Key";
	$fieldToolTipsproforma_invoices["French"]["others1_key"] = "";
	$fieldLabelsproforma_invoices["French"]["others2_key"] = "Others2 Key";
	$fieldToolTipsproforma_invoices["French"]["others2_key"] = "";
	$fieldLabelsproforma_invoices["French"]["others3_key"] = "Others3 Key";
	$fieldToolTipsproforma_invoices["French"]["others3_key"] = "";
	$fieldLabelsproforma_invoices["French"]["others1_value"] = "Others1 Value";
	$fieldToolTipsproforma_invoices["French"]["others1_value"] = "";
	$fieldLabelsproforma_invoices["French"]["others2_value"] = "Others2 Value";
	$fieldToolTipsproforma_invoices["French"]["others2_value"] = "";
	$fieldLabelsproforma_invoices["French"]["others3_value"] = "Others3 Value";
	$fieldToolTipsproforma_invoices["French"]["others3_value"] = "";
	$fieldLabelsproforma_invoices["French"]["payment_term_id"] = "Payment Term Id";
	$fieldToolTipsproforma_invoices["French"]["payment_term_id"] = "";
	$fieldLabelsproforma_invoices["French"]["payment_term_other"] = "Payment Term Other";
	$fieldToolTipsproforma_invoices["French"]["payment_term_other"] = "";
	$fieldLabelsproforma_invoices["French"]["bank_name_id"] = "Bank Name Id";
	$fieldToolTipsproforma_invoices["French"]["bank_name_id"] = "";
	$fieldLabelsproforma_invoices["French"]["bank_term1"] = "Bank Term1";
	$fieldToolTipsproforma_invoices["French"]["bank_term1"] = "";
	$fieldLabelsproforma_invoices["French"]["bank_term2"] = "Bank Term2";
	$fieldToolTipsproforma_invoices["French"]["bank_term2"] = "";
	$fieldLabelsproforma_invoices["French"]["currency_id"] = "Currency Id";
	$fieldToolTipsproforma_invoices["French"]["currency_id"] = "";
	$fieldLabelsproforma_invoices["French"]["terms_and_conditions"] = "Terms And Conditions";
	$fieldToolTipsproforma_invoices["French"]["terms_and_conditions"] = "";
	$fieldLabelsproforma_invoices["French"]["account_address"] = "Account Address";
	$fieldToolTipsproforma_invoices["French"]["account_address"] = "";
	$fieldLabelsproforma_invoices["French"]["buyer_address"] = "Buyer Address";
	$fieldToolTipsproforma_invoices["French"]["buyer_address"] = "";
	$fieldLabelsproforma_invoices["French"]["consignee_address"] = "Consignee Address";
	$fieldToolTipsproforma_invoices["French"]["consignee_address"] = "";
	$fieldLabelsproforma_invoices["French"]["notify_address"] = "Notify Address";
	$fieldToolTipsproforma_invoices["French"]["notify_address"] = "";
	if (count($fieldToolTipsproforma_invoices["French"])){
		$tdataproforma_invoices[".isUseToolTips"]=true;
	}
}


	
	$tdataproforma_invoices[".NCSearch"]=true;

	

$tdataproforma_invoices[".shortTableName"] = "proforma_invoices";
$tdataproforma_invoices[".nSecOptions"] = 0;
$tdataproforma_invoices[".recsPerRowList"] = 1;	
$tdataproforma_invoices[".tableGroupBy"] = "0";
$tdataproforma_invoices[".mainTableOwnerID"] = "";
$tdataproforma_invoices[".moveNext"] = 1;




$tdataproforma_invoices[".showAddInPopup"] = false;

$tdataproforma_invoices[".showEditInPopup"] = false;

$tdataproforma_invoices[".showViewInPopup"] = false;


$tdataproforma_invoices[".fieldsForRegister"] = array();

$tdataproforma_invoices[".listAjax"] = true;

	$tdataproforma_invoices[".audit"] = false;

	$tdataproforma_invoices[".locking"] = false;
	
$tdataproforma_invoices[".listIcons"] = true;
$tdataproforma_invoices[".edit"] = true;
$tdataproforma_invoices[".inlineEdit"] = true;
$tdataproforma_invoices[".copy"] = true;
$tdataproforma_invoices[".view"] = true;

$tdataproforma_invoices[".exportTo"] = true;

$tdataproforma_invoices[".printFriendly"] = true;

$tdataproforma_invoices[".delete"] = true;

$tdataproforma_invoices[".showSimpleSearchOptions"] = true;

$tdataproforma_invoices[".showSearchPanel"] = true;


$tdataproforma_invoices[".isUseAjaxSuggest"] = true;

$tdataproforma_invoices[".rowHighlite"] = true;


// button handlers file names

$tdataproforma_invoices[".addPageEvents"] = true;

$tdataproforma_invoices[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdataproforma_invoices[".isUseCalendarForSearch"] = true;

// use timepicker for search panel
$tdataproforma_invoices[".isUseTimeForSearch"] = false;

$tdataproforma_invoices[".isUseiBox"] = false;


$tdataproforma_invoices[".useDetailsPreview"] = true;	

$tdataproforma_invoices[".isUseInlineAdd"] = true;

$tdataproforma_invoices[".isUseInlineEdit"] = true;
$tdataproforma_invoices[".isUseInlineJs"] = $tdataproforma_invoices[".isUseInlineAdd"] || $tdataproforma_invoices[".isUseInlineEdit"];

$tdataproforma_invoices[".allSearchFields"] = array();

$tdataproforma_invoices[".globSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdataproforma_invoices[".allSearchFields"]))
{
	$tdataproforma_invoices[".allSearchFields"][] = "id";	
}
$tdataproforma_invoices[".globSearchFields"][] = "account_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("account_id", $tdataproforma_invoices[".allSearchFields"]))
{
	$tdataproforma_invoices[".allSearchFields"][] = "account_id";	
}
$tdataproforma_invoices[".globSearchFields"][] = "account_address";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("account_address", $tdataproforma_invoices[".allSearchFields"]))
{
	$tdataproforma_invoices[".allSearchFields"][] = "account_address";	
}
$tdataproforma_invoices[".globSearchFields"][] = "consignee_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("consignee_id", $tdataproforma_invoices[".allSearchFields"]))
{
	$tdataproforma_invoices[".allSearchFields"][] = "consignee_id";	
}
$tdataproforma_invoices[".globSearchFields"][] = "consignee_address";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("consignee_address", $tdataproforma_invoices[".allSearchFields"]))
{
	$tdataproforma_invoices[".allSearchFields"][] = "consignee_address";	
}
$tdataproforma_invoices[".globSearchFields"][] = "notify_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("notify_id", $tdataproforma_invoices[".allSearchFields"]))
{
	$tdataproforma_invoices[".allSearchFields"][] = "notify_id";	
}
$tdataproforma_invoices[".globSearchFields"][] = "notify_address";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("notify_address", $tdataproforma_invoices[".allSearchFields"]))
{
	$tdataproforma_invoices[".allSearchFields"][] = "notify_address";	
}
$tdataproforma_invoices[".globSearchFields"][] = "buyer_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("buyer_id", $tdataproforma_invoices[".allSearchFields"]))
{
	$tdataproforma_invoices[".allSearchFields"][] = "buyer_id";	
}
$tdataproforma_invoices[".globSearchFields"][] = "buyer_address";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("buyer_address", $tdataproforma_invoices[".allSearchFields"]))
{
	$tdataproforma_invoices[".allSearchFields"][] = "buyer_address";	
}
$tdataproforma_invoices[".globSearchFields"][] = "proforma_invoice_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("proforma_invoice_no", $tdataproforma_invoices[".allSearchFields"]))
{
	$tdataproforma_invoices[".allSearchFields"][] = "proforma_invoice_no";	
}
$tdataproforma_invoices[".globSearchFields"][] = "proforma_invoice_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("proforma_invoice_date", $tdataproforma_invoices[".allSearchFields"]))
{
	$tdataproforma_invoices[".allSearchFields"][] = "proforma_invoice_date";	
}
$tdataproforma_invoices[".globSearchFields"][] = "customer_reference";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("customer_reference", $tdataproforma_invoices[".allSearchFields"]))
{
	$tdataproforma_invoices[".allSearchFields"][] = "customer_reference";	
}
$tdataproforma_invoices[".globSearchFields"][] = "commercial_invoice_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("commercial_invoice_no", $tdataproforma_invoices[".allSearchFields"]))
{
	$tdataproforma_invoices[".allSearchFields"][] = "commercial_invoice_no";	
}
$tdataproforma_invoices[".globSearchFields"][] = "commercial_invoice_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("commercial_invoice_date", $tdataproforma_invoices[".allSearchFields"]))
{
	$tdataproforma_invoices[".allSearchFields"][] = "commercial_invoice_date";	
}
$tdataproforma_invoices[".globSearchFields"][] = "customer_reference_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("customer_reference_date", $tdataproforma_invoices[".allSearchFields"]))
{
	$tdataproforma_invoices[".allSearchFields"][] = "customer_reference_date";	
}
$tdataproforma_invoices[".globSearchFields"][] = "payment_term_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("payment_term_id", $tdataproforma_invoices[".allSearchFields"]))
{
	$tdataproforma_invoices[".allSearchFields"][] = "payment_term_id";	
}
$tdataproforma_invoices[".globSearchFields"][] = "payment_term_other";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("payment_term_other", $tdataproforma_invoices[".allSearchFields"]))
{
	$tdataproforma_invoices[".allSearchFields"][] = "payment_term_other";	
}
$tdataproforma_invoices[".globSearchFields"][] = "currency_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("currency_id", $tdataproforma_invoices[".allSearchFields"]))
{
	$tdataproforma_invoices[".allSearchFields"][] = "currency_id";	
}
$tdataproforma_invoices[".globSearchFields"][] = "bank_name_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("bank_name_id", $tdataproforma_invoices[".allSearchFields"]))
{
	$tdataproforma_invoices[".allSearchFields"][] = "bank_name_id";	
}
$tdataproforma_invoices[".globSearchFields"][] = "bank_term1";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("bank_term1", $tdataproforma_invoices[".allSearchFields"]))
{
	$tdataproforma_invoices[".allSearchFields"][] = "bank_term1";	
}
$tdataproforma_invoices[".globSearchFields"][] = "bank_term2";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("bank_term2", $tdataproforma_invoices[".allSearchFields"]))
{
	$tdataproforma_invoices[".allSearchFields"][] = "bank_term2";	
}
$tdataproforma_invoices[".globSearchFields"][] = "additional_charges_frieght_type";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("additional_charges_frieght_type", $tdataproforma_invoices[".allSearchFields"]))
{
	$tdataproforma_invoices[".allSearchFields"][] = "additional_charges_frieght_type";	
}
$tdataproforma_invoices[".globSearchFields"][] = "additional_charges_legalization";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("additional_charges_legalization", $tdataproforma_invoices[".allSearchFields"]))
{
	$tdataproforma_invoices[".allSearchFields"][] = "additional_charges_legalization";	
}
$tdataproforma_invoices[".globSearchFields"][] = "additional_charges_inspection";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("additional_charges_inspection", $tdataproforma_invoices[".allSearchFields"]))
{
	$tdataproforma_invoices[".allSearchFields"][] = "additional_charges_inspection";	
}
$tdataproforma_invoices[".globSearchFields"][] = "additional_charges_special_packing";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("additional_charges_special_packing", $tdataproforma_invoices[".allSearchFields"]))
{
	$tdataproforma_invoices[".allSearchFields"][] = "additional_charges_special_packing";	
}
$tdataproforma_invoices[".globSearchFields"][] = "others1_key";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("others1_key", $tdataproforma_invoices[".allSearchFields"]))
{
	$tdataproforma_invoices[".allSearchFields"][] = "others1_key";	
}
$tdataproforma_invoices[".globSearchFields"][] = "others1_value";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("others1_value", $tdataproforma_invoices[".allSearchFields"]))
{
	$tdataproforma_invoices[".allSearchFields"][] = "others1_value";	
}
$tdataproforma_invoices[".globSearchFields"][] = "others2_key";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("others2_key", $tdataproforma_invoices[".allSearchFields"]))
{
	$tdataproforma_invoices[".allSearchFields"][] = "others2_key";	
}
$tdataproforma_invoices[".globSearchFields"][] = "others2_value";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("others2_value", $tdataproforma_invoices[".allSearchFields"]))
{
	$tdataproforma_invoices[".allSearchFields"][] = "others2_value";	
}
$tdataproforma_invoices[".globSearchFields"][] = "others3_key";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("others3_key", $tdataproforma_invoices[".allSearchFields"]))
{
	$tdataproforma_invoices[".allSearchFields"][] = "others3_key";	
}
$tdataproforma_invoices[".globSearchFields"][] = "others3_value";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("others3_value", $tdataproforma_invoices[".allSearchFields"]))
{
	$tdataproforma_invoices[".allSearchFields"][] = "others3_value";	
}
$tdataproforma_invoices[".globSearchFields"][] = "terms_and_conditions";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("terms_and_conditions", $tdataproforma_invoices[".allSearchFields"]))
{
	$tdataproforma_invoices[".allSearchFields"][] = "terms_and_conditions";	
}
$tdataproforma_invoices[".globSearchFields"][] = "term_of_sale1";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("term_of_sale1", $tdataproforma_invoices[".allSearchFields"]))
{
	$tdataproforma_invoices[".allSearchFields"][] = "term_of_sale1";	
}
$tdataproforma_invoices[".globSearchFields"][] = "term_of_sale2";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("term_of_sale2", $tdataproforma_invoices[".allSearchFields"]))
{
	$tdataproforma_invoices[".allSearchFields"][] = "term_of_sale2";	
}
$tdataproforma_invoices[".globSearchFields"][] = "shipment_mode_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("shipment_mode_id", $tdataproforma_invoices[".allSearchFields"]))
{
	$tdataproforma_invoices[".allSearchFields"][] = "shipment_mode_id";	
}
$tdataproforma_invoices[".globSearchFields"][] = "estimated_shipment_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("estimated_shipment_date", $tdataproforma_invoices[".allSearchFields"]))
{
	$tdataproforma_invoices[".allSearchFields"][] = "estimated_shipment_date";	
}
$tdataproforma_invoices[".globSearchFields"][] = "estimated_shipment_date_custom";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("estimated_shipment_date_custom", $tdataproforma_invoices[".allSearchFields"]))
{
	$tdataproforma_invoices[".allSearchFields"][] = "estimated_shipment_date_custom";	
}


$tdataproforma_invoices[".googleLikeFields"][] = "id";
$tdataproforma_invoices[".googleLikeFields"][] = "account_id";
$tdataproforma_invoices[".googleLikeFields"][] = "account_address";
$tdataproforma_invoices[".googleLikeFields"][] = "consignee_id";
$tdataproforma_invoices[".googleLikeFields"][] = "consignee_address";
$tdataproforma_invoices[".googleLikeFields"][] = "notify_id";
$tdataproforma_invoices[".googleLikeFields"][] = "notify_address";
$tdataproforma_invoices[".googleLikeFields"][] = "buyer_id";
$tdataproforma_invoices[".googleLikeFields"][] = "buyer_address";
$tdataproforma_invoices[".googleLikeFields"][] = "proforma_invoice_no";
$tdataproforma_invoices[".googleLikeFields"][] = "proforma_invoice_date";
$tdataproforma_invoices[".googleLikeFields"][] = "customer_reference";
$tdataproforma_invoices[".googleLikeFields"][] = "commercial_invoice_no";
$tdataproforma_invoices[".googleLikeFields"][] = "commercial_invoice_date";
$tdataproforma_invoices[".googleLikeFields"][] = "customer_reference_date";
$tdataproforma_invoices[".googleLikeFields"][] = "payment_term_id";
$tdataproforma_invoices[".googleLikeFields"][] = "payment_term_other";
$tdataproforma_invoices[".googleLikeFields"][] = "currency_id";
$tdataproforma_invoices[".googleLikeFields"][] = "bank_name_id";
$tdataproforma_invoices[".googleLikeFields"][] = "bank_term1";
$tdataproforma_invoices[".googleLikeFields"][] = "bank_term2";
$tdataproforma_invoices[".googleLikeFields"][] = "additional_charges_frieght_type";
$tdataproforma_invoices[".googleLikeFields"][] = "additional_charges_legalization";
$tdataproforma_invoices[".googleLikeFields"][] = "additional_charges_inspection";
$tdataproforma_invoices[".googleLikeFields"][] = "additional_charges_special_packing";
$tdataproforma_invoices[".googleLikeFields"][] = "others1_key";
$tdataproforma_invoices[".googleLikeFields"][] = "others1_value";
$tdataproforma_invoices[".googleLikeFields"][] = "others2_key";
$tdataproforma_invoices[".googleLikeFields"][] = "others2_value";
$tdataproforma_invoices[".googleLikeFields"][] = "others3_key";
$tdataproforma_invoices[".googleLikeFields"][] = "others3_value";
$tdataproforma_invoices[".googleLikeFields"][] = "terms_and_conditions";
$tdataproforma_invoices[".googleLikeFields"][] = "term_of_sale1";
$tdataproforma_invoices[".googleLikeFields"][] = "term_of_sale2";
$tdataproforma_invoices[".googleLikeFields"][] = "shipment_mode_id";
$tdataproforma_invoices[".googleLikeFields"][] = "estimated_shipment_date";
$tdataproforma_invoices[".googleLikeFields"][] = "estimated_shipment_date_custom";



$tdataproforma_invoices[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdataproforma_invoices[".allSearchFields"])) 
{
	$tdataproforma_invoices[".allSearchFields"][] = "id";	
}
$tdataproforma_invoices[".advSearchFields"][] = "account_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("account_id", $tdataproforma_invoices[".allSearchFields"])) 
{
	$tdataproforma_invoices[".allSearchFields"][] = "account_id";	
}
$tdataproforma_invoices[".advSearchFields"][] = "account_address";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("account_address", $tdataproforma_invoices[".allSearchFields"])) 
{
	$tdataproforma_invoices[".allSearchFields"][] = "account_address";	
}
$tdataproforma_invoices[".advSearchFields"][] = "consignee_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("consignee_id", $tdataproforma_invoices[".allSearchFields"])) 
{
	$tdataproforma_invoices[".allSearchFields"][] = "consignee_id";	
}
$tdataproforma_invoices[".advSearchFields"][] = "consignee_address";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("consignee_address", $tdataproforma_invoices[".allSearchFields"])) 
{
	$tdataproforma_invoices[".allSearchFields"][] = "consignee_address";	
}
$tdataproforma_invoices[".advSearchFields"][] = "notify_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("notify_id", $tdataproforma_invoices[".allSearchFields"])) 
{
	$tdataproforma_invoices[".allSearchFields"][] = "notify_id";	
}
$tdataproforma_invoices[".advSearchFields"][] = "notify_address";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("notify_address", $tdataproforma_invoices[".allSearchFields"])) 
{
	$tdataproforma_invoices[".allSearchFields"][] = "notify_address";	
}
$tdataproforma_invoices[".advSearchFields"][] = "buyer_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("buyer_id", $tdataproforma_invoices[".allSearchFields"])) 
{
	$tdataproforma_invoices[".allSearchFields"][] = "buyer_id";	
}
$tdataproforma_invoices[".advSearchFields"][] = "buyer_address";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("buyer_address", $tdataproforma_invoices[".allSearchFields"])) 
{
	$tdataproforma_invoices[".allSearchFields"][] = "buyer_address";	
}
$tdataproforma_invoices[".advSearchFields"][] = "proforma_invoice_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("proforma_invoice_no", $tdataproforma_invoices[".allSearchFields"])) 
{
	$tdataproforma_invoices[".allSearchFields"][] = "proforma_invoice_no";	
}
$tdataproforma_invoices[".advSearchFields"][] = "proforma_invoice_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("proforma_invoice_date", $tdataproforma_invoices[".allSearchFields"])) 
{
	$tdataproforma_invoices[".allSearchFields"][] = "proforma_invoice_date";	
}
$tdataproforma_invoices[".advSearchFields"][] = "customer_reference";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("customer_reference", $tdataproforma_invoices[".allSearchFields"])) 
{
	$tdataproforma_invoices[".allSearchFields"][] = "customer_reference";	
}
$tdataproforma_invoices[".advSearchFields"][] = "commercial_invoice_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("commercial_invoice_no", $tdataproforma_invoices[".allSearchFields"])) 
{
	$tdataproforma_invoices[".allSearchFields"][] = "commercial_invoice_no";	
}
$tdataproforma_invoices[".advSearchFields"][] = "commercial_invoice_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("commercial_invoice_date", $tdataproforma_invoices[".allSearchFields"])) 
{
	$tdataproforma_invoices[".allSearchFields"][] = "commercial_invoice_date";	
}
$tdataproforma_invoices[".advSearchFields"][] = "customer_reference_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("customer_reference_date", $tdataproforma_invoices[".allSearchFields"])) 
{
	$tdataproforma_invoices[".allSearchFields"][] = "customer_reference_date";	
}
$tdataproforma_invoices[".advSearchFields"][] = "payment_term_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("payment_term_id", $tdataproforma_invoices[".allSearchFields"])) 
{
	$tdataproforma_invoices[".allSearchFields"][] = "payment_term_id";	
}
$tdataproforma_invoices[".advSearchFields"][] = "payment_term_other";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("payment_term_other", $tdataproforma_invoices[".allSearchFields"])) 
{
	$tdataproforma_invoices[".allSearchFields"][] = "payment_term_other";	
}
$tdataproforma_invoices[".advSearchFields"][] = "currency_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("currency_id", $tdataproforma_invoices[".allSearchFields"])) 
{
	$tdataproforma_invoices[".allSearchFields"][] = "currency_id";	
}
$tdataproforma_invoices[".advSearchFields"][] = "bank_name_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("bank_name_id", $tdataproforma_invoices[".allSearchFields"])) 
{
	$tdataproforma_invoices[".allSearchFields"][] = "bank_name_id";	
}
$tdataproforma_invoices[".advSearchFields"][] = "bank_term1";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("bank_term1", $tdataproforma_invoices[".allSearchFields"])) 
{
	$tdataproforma_invoices[".allSearchFields"][] = "bank_term1";	
}
$tdataproforma_invoices[".advSearchFields"][] = "bank_term2";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("bank_term2", $tdataproforma_invoices[".allSearchFields"])) 
{
	$tdataproforma_invoices[".allSearchFields"][] = "bank_term2";	
}
$tdataproforma_invoices[".advSearchFields"][] = "additional_charges_frieght_type";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("additional_charges_frieght_type", $tdataproforma_invoices[".allSearchFields"])) 
{
	$tdataproforma_invoices[".allSearchFields"][] = "additional_charges_frieght_type";	
}
$tdataproforma_invoices[".advSearchFields"][] = "additional_charges_legalization";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("additional_charges_legalization", $tdataproforma_invoices[".allSearchFields"])) 
{
	$tdataproforma_invoices[".allSearchFields"][] = "additional_charges_legalization";	
}
$tdataproforma_invoices[".advSearchFields"][] = "additional_charges_inspection";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("additional_charges_inspection", $tdataproforma_invoices[".allSearchFields"])) 
{
	$tdataproforma_invoices[".allSearchFields"][] = "additional_charges_inspection";	
}
$tdataproforma_invoices[".advSearchFields"][] = "additional_charges_special_packing";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("additional_charges_special_packing", $tdataproforma_invoices[".allSearchFields"])) 
{
	$tdataproforma_invoices[".allSearchFields"][] = "additional_charges_special_packing";	
}
$tdataproforma_invoices[".advSearchFields"][] = "others1_key";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("others1_key", $tdataproforma_invoices[".allSearchFields"])) 
{
	$tdataproforma_invoices[".allSearchFields"][] = "others1_key";	
}
$tdataproforma_invoices[".advSearchFields"][] = "others1_value";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("others1_value", $tdataproforma_invoices[".allSearchFields"])) 
{
	$tdataproforma_invoices[".allSearchFields"][] = "others1_value";	
}
$tdataproforma_invoices[".advSearchFields"][] = "others2_key";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("others2_key", $tdataproforma_invoices[".allSearchFields"])) 
{
	$tdataproforma_invoices[".allSearchFields"][] = "others2_key";	
}
$tdataproforma_invoices[".advSearchFields"][] = "others2_value";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("others2_value", $tdataproforma_invoices[".allSearchFields"])) 
{
	$tdataproforma_invoices[".allSearchFields"][] = "others2_value";	
}
$tdataproforma_invoices[".advSearchFields"][] = "others3_key";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("others3_key", $tdataproforma_invoices[".allSearchFields"])) 
{
	$tdataproforma_invoices[".allSearchFields"][] = "others3_key";	
}
$tdataproforma_invoices[".advSearchFields"][] = "others3_value";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("others3_value", $tdataproforma_invoices[".allSearchFields"])) 
{
	$tdataproforma_invoices[".allSearchFields"][] = "others3_value";	
}
$tdataproforma_invoices[".advSearchFields"][] = "terms_and_conditions";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("terms_and_conditions", $tdataproforma_invoices[".allSearchFields"])) 
{
	$tdataproforma_invoices[".allSearchFields"][] = "terms_and_conditions";	
}
$tdataproforma_invoices[".advSearchFields"][] = "term_of_sale1";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("term_of_sale1", $tdataproforma_invoices[".allSearchFields"])) 
{
	$tdataproforma_invoices[".allSearchFields"][] = "term_of_sale1";	
}
$tdataproforma_invoices[".advSearchFields"][] = "term_of_sale2";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("term_of_sale2", $tdataproforma_invoices[".allSearchFields"])) 
{
	$tdataproforma_invoices[".allSearchFields"][] = "term_of_sale2";	
}
$tdataproforma_invoices[".advSearchFields"][] = "shipment_mode_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("shipment_mode_id", $tdataproforma_invoices[".allSearchFields"])) 
{
	$tdataproforma_invoices[".allSearchFields"][] = "shipment_mode_id";	
}
$tdataproforma_invoices[".advSearchFields"][] = "estimated_shipment_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("estimated_shipment_date", $tdataproforma_invoices[".allSearchFields"])) 
{
	$tdataproforma_invoices[".allSearchFields"][] = "estimated_shipment_date";	
}
$tdataproforma_invoices[".advSearchFields"][] = "estimated_shipment_date_custom";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("estimated_shipment_date_custom", $tdataproforma_invoices[".allSearchFields"])) 
{
	$tdataproforma_invoices[".allSearchFields"][] = "estimated_shipment_date_custom";	
}

$tdataproforma_invoices[".isTableType"] = "list";


	

$tdataproforma_invoices[".isDisplayLoading"] = true;

$tdataproforma_invoices[".isResizeColumns"] = false;

	$tdataproforma_invoices[".subQueriesSupAccess"] = true;




$tdataproforma_invoices[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdataproforma_invoices[".strOrderBy"] = $gstrOrderBy;
	
$tdataproforma_invoices[".orderindexes"] = array();

$tdataproforma_invoices[".sqlHead"] = "SELECT id,  account_id,  'account_address' AS account_address,  buyer_id,  '1' AS buyer_address,  consignee_id,  '1' AS consignee_address,  notify_id,  '1' AS notify_address,  proforma_invoice_no,  proforma_invoice_date,  customer_reference,  customer_reference_date,  commercial_invoice_no,  commercial_invoice_date,  term_of_sale1,  term_of_sale2,  shipment_mode_id,  estimated_shipment_date,  estimated_shipment_date_custom,  additional_charges_frieght_type,  additional_charges_legalization,  additional_charges_inspection,  additional_charges_special_packing,  others1_key,  others2_key,  others3_key,  others1_value,  others2_value,  others3_value,  payment_term_id,  payment_term_other,  bank_name_id,  bank_term1,  bank_term2,  currency_id,  terms_and_conditions";
$tdataproforma_invoices[".sqlFrom"] = "FROM proforma_invoices";
$tdataproforma_invoices[".sqlWhereExpr"] = "";
$tdataproforma_invoices[".sqlTail"] = "";

//fill array of tabs for edit page
$arrEditTabs = array();
	$tabFields = array();
	$tabFields[]="account_id";
	$tabFields[]="account_address";
	$tabFields[]="consignee_id";
	$tabFields[]="consignee_address";
	$tabFields[]="notify_id";
	$tabFields[]="notify_address";
	$tabFields[]="buyer_id";
	$tabFields[]="buyer_address";
$arrEditTabs[] = array('tabId'=>'Commercial1',
					   'tabName'=>"Commercial",
					   'nType'=>'1',
					   'nOrder'=>1,
					   'tabGroup'=>0,
					   'arrFields'=> $tabFields,
					   'expandSec'=>1);
	$tabFields = array();
	$tabFields[]="proforma_invoice_no";
	$tabFields[]="proforma_invoice_date";
	$tabFields[]="customer_reference";
	$tabFields[]="commercial_invoice_no";
	$tabFields[]="commercial_invoice_date";
	$tabFields[]="customer_reference_date";
$arrEditTabs[] = array('tabId'=>'Invoice_Details1',
					   'tabName'=>"Invoice Details",
					   'nType'=>'1',
					   'nOrder'=>10,
					   'tabGroup'=>0,
					   'arrFields'=> $tabFields,
					   'expandSec'=>1);
	$tabFields = array();
	$tabFields[]="payment_term_id";
	$tabFields[]="payment_term_other";
	$tabFields[]="currency_id";
	$tabFields[]="bank_name_id";
	$tabFields[]="bank_term1";
	$tabFields[]="bank_term2";
$arrEditTabs[] = array('tabId'=>'Payments1',
					   'tabName'=>"Payments",
					   'nType'=>'1',
					   'nOrder'=>17,
					   'tabGroup'=>0,
					   'arrFields'=> $tabFields,
					   'expandSec'=>1);
	$tabFields = array();
	$tabFields[]="additional_charges_frieght_type";
	$tabFields[]="additional_charges_legalization";
	$tabFields[]="additional_charges_inspection";
	$tabFields[]="additional_charges_special_packing";
	$tabFields[]="others1_key";
	$tabFields[]="others1_value";
	$tabFields[]="others2_key";
	$tabFields[]="others2_value";
	$tabFields[]="others3_key";
	$tabFields[]="others3_value";
$arrEditTabs[] = array('tabId'=>'Additional_Charges1',
					   'tabName'=>"Additional Charges",
					   'nType'=>'1',
					   'nOrder'=>24,
					   'tabGroup'=>0,
					   'arrFields'=> $tabFields,
					   'expandSec'=>1);
	$tabFields = array();
	$tabFields[]="terms_and_conditions";
	$tabFields[]="term_of_sale1";
	$tabFields[]="term_of_sale2";
$arrEditTabs[] = array('tabId'=>'Others1',
					   'tabName'=>"Others",
					   'nType'=>'1',
					   'nOrder'=>35,
					   'tabGroup'=>0,
					   'arrFields'=> $tabFields,
					   'expandSec'=>1);
	$tabFields = array();
	$tabFields[]="shipment_mode_id";
	$tabFields[]="estimated_shipment_date";
	$tabFields[]="estimated_shipment_date_custom";
$arrEditTabs[] = array('tabId'=>'Shipment_Details1',
					   'tabName'=>"Shipment Details",
					   'nType'=>'1',
					   'nOrder'=>39,
					   'tabGroup'=>0,
					   'arrFields'=> $tabFields,
					   'expandSec'=>1);
$tdataproforma_invoices[".arrEditTabs"] = $arrEditTabs;

//fill array of tabs for add page
$arrAddTabs = array();
	$tabFields = array();
	$tabFields[] = "account_id";
	$tabFields[] = "account_address";
	$tabFields[] = "consignee_id";
	$tabFields[] = "consignee_address";
	$tabFields[] = "notify_id";
	$tabFields[] = "notify_address";
	$tabFields[] = "buyer_id";
	$tabFields[] = "buyer_address";
$arrAddTabs[] = array('tabId'=>'Commercial1',
					  'tabName'=>"Commercial",
					  'nType'=>'1',
					  'nOrder'=>1,
					  'tabGroup'=>0,
					  'arrFields'=> $tabFields,
					  'expandSec'=>1);
	$tabFields = array();
	$tabFields[] = "payment_term_id";
	$tabFields[] = "payment_term_other";
	$tabFields[] = "currency_id";
	$tabFields[] = "bank_name_id";
	$tabFields[] = "bank_term1";
	$tabFields[] = "bank_term2";
$arrAddTabs[] = array('tabId'=>'Payments1',
					  'tabName'=>"Payments",
					  'nType'=>'1',
					  'nOrder'=>10,
					  'tabGroup'=>0,
					  'arrFields'=> $tabFields,
					  'expandSec'=>1);
	$tabFields = array();
	$tabFields[] = "additional_charges_frieght_type";
	$tabFields[] = "additional_charges_legalization";
	$tabFields[] = "additional_charges_inspection";
	$tabFields[] = "additional_charges_special_packing";
	$tabFields[] = "others1_key";
	$tabFields[] = "others1_value";
	$tabFields[] = "others2_key";
	$tabFields[] = "others2_value";
	$tabFields[] = "others3_key";
	$tabFields[] = "others3_value";
$arrAddTabs[] = array('tabId'=>'Additional_Charges1',
					  'tabName'=>"Additional Charges",
					  'nType'=>'1',
					  'nOrder'=>17,
					  'tabGroup'=>0,
					  'arrFields'=> $tabFields,
					  'expandSec'=>1);
	$tabFields = array();
	$tabFields[] = "terms_and_conditions";
	$tabFields[] = "term_of_sale1";
	$tabFields[] = "term_of_sale2";
$arrAddTabs[] = array('tabId'=>'Others1',
					  'tabName'=>"Others",
					  'nType'=>'1',
					  'nOrder'=>28,
					  'tabGroup'=>0,
					  'arrFields'=> $tabFields,
					  'expandSec'=>1);
	$tabFields = array();
	$tabFields[] = "proforma_invoice_no";
	$tabFields[] = "proforma_invoice_date";
	$tabFields[] = "customer_reference";
	$tabFields[] = "commercial_invoice_no";
	$tabFields[] = "commercial_invoice_date";
	$tabFields[] = "customer_reference_date";
$arrAddTabs[] = array('tabId'=>'Invoice_Details1',
					  'tabName'=>"Invoice Details",
					  'nType'=>'1',
					  'nOrder'=>32,
					  'tabGroup'=>0,
					  'arrFields'=> $tabFields,
					  'expandSec'=>1);
	$tabFields = array();
	$tabFields[] = "shipment_mode_id";
	$tabFields[] = "estimated_shipment_date";
	$tabFields[] = "estimated_shipment_date_custom";
$arrAddTabs[] = array('tabId'=>'Shipment_Details1',
					  'tabName'=>"Shipment Details",
					  'nType'=>'1',
					  'nOrder'=>39,
					  'tabGroup'=>0,
					  'arrFields'=> $tabFields,
					  'expandSec'=>1);
$tdataproforma_invoices[".arrAddTabs"] = $arrAddTabs;

//fill array of tabs for view page
$arrViewTabs = array();
	$tabFields = array();
	$tabFields[] = "account_id";
	$tabFields[] = "account_address";
	$tabFields[] = "consignee_id";
	$tabFields[] = "consignee_address";
	$tabFields[] = "notify_id";
	$tabFields[] = "notify_address";
	$tabFields[] = "buyer_id";
	$tabFields[] = "buyer_address";
$arrViewTabs[] = array('tabId'=>'Commercial1',
					   'tabName'=>"Commercial",
					   'nType'=>'1',
					   'nOrder'=>2,
					   'tabGroup'=>0,
					   'arrFields'=> $tabFields,
					   'expandSec'=>1);
	$tabFields = array();
	$tabFields[] = "proforma_invoice_no";
	$tabFields[] = "proforma_invoice_date";
	$tabFields[] = "customer_reference";
	$tabFields[] = "commercial_invoice_no";
	$tabFields[] = "commercial_invoice_date";
	$tabFields[] = "customer_reference_date";
$arrViewTabs[] = array('tabId'=>'Invoice_Details1',
					   'tabName'=>"Invoice Details",
					   'nType'=>'1',
					   'nOrder'=>11,
					   'tabGroup'=>0,
					   'arrFields'=> $tabFields,
					   'expandSec'=>1);
	$tabFields = array();
	$tabFields[] = "payment_term_id";
	$tabFields[] = "payment_term_other";
	$tabFields[] = "currency_id";
	$tabFields[] = "bank_name_id";
	$tabFields[] = "bank_term1";
	$tabFields[] = "bank_term2";
$arrViewTabs[] = array('tabId'=>'Payments1',
					   'tabName'=>"Payments",
					   'nType'=>'1',
					   'nOrder'=>18,
					   'tabGroup'=>0,
					   'arrFields'=> $tabFields,
					   'expandSec'=>1);
	$tabFields = array();
	$tabFields[] = "shipment_mode_id";
	$tabFields[] = "estimated_shipment_date";
	$tabFields[] = "estimated_shipment_date_custom";
$arrViewTabs[] = array('tabId'=>'Shipment_Details1',
					   'tabName'=>"Shipment Details",
					   'nType'=>'1',
					   'nOrder'=>25,
					   'tabGroup'=>0,
					   'arrFields'=> $tabFields,
					   'expandSec'=>1);
	$tabFields = array();
	$tabFields[] = "terms_and_conditions";
	$tabFields[] = "term_of_sale1";
	$tabFields[] = "term_of_sale2";
$arrViewTabs[] = array('tabId'=>'Others1',
					   'tabName'=>"Others",
					   'nType'=>'1',
					   'nOrder'=>29,
					   'tabGroup'=>0,
					   'arrFields'=> $tabFields,
					   'expandSec'=>1);
$tdataproforma_invoices[".arrViewTabs"] = $arrViewTabs;

//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdataproforma_invoices[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdataproforma_invoices[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdataproforma_invoices[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoices["id"]=$fdata;
//	account_id
	$fdata = array();
	$fdata["strName"] = "account_id";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Account"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
	$fdata["autoCompleteFields"][] = array('masterF'=>"account_address", 'lookupF'=>"full_addr");
										$fdata["LinkField"]="id";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="company_name";
				$fdata["LookupTable"]="company_addresses";
	$fdata["LookupOrderBy"]="company_name";
							$fdata["LookupWhere"] = "category='Account'";
										$fdata["AllowToAdd"]=true; 
				
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "account_id";
	
		$fdata["FullName"]= "account_id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 2;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoices["account_id"]=$fdata;
//	account_address
	$fdata = array();
	$fdata["strName"] = "account_address";
	$fdata["ownerTable"] = "";
		$fdata["Label"]="Account Address"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "account_address";
	
		$fdata["FullName"]= "'account_address'";
	
		
		
		
		
		
			$fdata["UploadFolder"]="files"; 
		$fdata["Index"]= 3;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=100";
		$fdata["nRows"] = 100;
			$fdata["EditParams"].= " cols=200";
		$fdata["nCols"] = 200;
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoices["account_address"]=$fdata;
//	buyer_id
	$fdata = array();
	$fdata["strName"] = "buyer_id";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Buyer"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
	$fdata["autoCompleteFields"][] = array('masterF'=>"buyer_address", 'lookupF'=>"full_addr");
										$fdata["LinkField"]="id";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="company_name";
				$fdata["LookupTable"]="company_addresses";
	$fdata["LookupOrderBy"]="company_name";
							$fdata["LookupWhere"] = "category='Buyer'";
										$fdata["AllowToAdd"]=true; 
				
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "buyer_id";
	
		$fdata["FullName"]= "buyer_id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 4;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoices["buyer_id"]=$fdata;
//	buyer_address
	$fdata = array();
	$fdata["strName"] = "buyer_address";
	$fdata["ownerTable"] = "";
		$fdata["Label"]="Buyer Address"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "buyer_address";
	
		$fdata["FullName"]= "'1'";
	
		
		
		
		
		
				$fdata["Index"]= 5;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=100";
		$fdata["nRows"] = 100;
			$fdata["EditParams"].= " cols=200";
		$fdata["nCols"] = 200;
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoices["buyer_address"]=$fdata;
//	consignee_id
	$fdata = array();
	$fdata["strName"] = "consignee_id";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Consignee"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
	$fdata["autoCompleteFields"][] = array('masterF'=>"consignee_address", 'lookupF'=>"full_addr");
										$fdata["LinkField"]="id";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="company_name";
				$fdata["LookupTable"]="company_addresses";
	$fdata["LookupOrderBy"]="company_name";
							$fdata["LookupWhere"] = "category='Buyer'";
										$fdata["AllowToAdd"]=true; 
				
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "consignee_id";
	
		$fdata["FullName"]= "consignee_id";
	
		
		
		
		
		
				$fdata["Index"]= 6;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoices["consignee_id"]=$fdata;
//	consignee_address
	$fdata = array();
	$fdata["strName"] = "consignee_address";
	$fdata["ownerTable"] = "";
		$fdata["Label"]="Consignee Address"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "consignee_address";
	
		$fdata["FullName"]= "'1'";
	
		
		
		
		
		
				$fdata["Index"]= 7;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=100";
		$fdata["nRows"] = 100;
			$fdata["EditParams"].= " cols=200";
		$fdata["nCols"] = 200;
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoices["consignee_address"]=$fdata;
//	notify_id
	$fdata = array();
	$fdata["strName"] = "notify_id";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Notify"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
	$fdata["autoCompleteFields"][] = array('masterF'=>"notify_address", 'lookupF'=>"full_addr");
										$fdata["LinkField"]="id";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="company_name";
				$fdata["LookupTable"]="company_addresses";
	$fdata["LookupOrderBy"]="company_name";
							$fdata["LookupWhere"] = "category='Buyer'";
										$fdata["AllowToAdd"]=true; 
				
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "notify_id";
	
		$fdata["FullName"]= "notify_id";
	
		
		
		
		
		
				$fdata["Index"]= 8;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoices["notify_id"]=$fdata;
//	notify_address
	$fdata = array();
	$fdata["strName"] = "notify_address";
	$fdata["ownerTable"] = "";
		$fdata["Label"]="Notify Address"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "notify_address";
	
		$fdata["FullName"]= "'1'";
	
		
		
		
		
		
				$fdata["Index"]= 9;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=100";
		$fdata["nRows"] = 100;
			$fdata["EditParams"].= " cols=200";
		$fdata["nCols"] = 200;
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoices["notify_address"]=$fdata;
//	proforma_invoice_no
	$fdata = array();
	$fdata["strName"] = "proforma_invoice_no";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Proforma Invoice No"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "proforma_invoice_no";
	
		$fdata["FullName"]= "proforma_invoice_no";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 10;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoices["proforma_invoice_no"]=$fdata;
//	proforma_invoice_date
	$fdata = array();
	$fdata["strName"] = "proforma_invoice_date";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Proforma Invoice Date"; 
	
		
		
	$fdata["FieldType"]= 7;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Date";
	$fdata["ViewFormat"]= "Short Date";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "proforma_invoice_date";
	
		$fdata["FullName"]= "proforma_invoice_date";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 11;
		$fdata["DateEditType"] = 13; 
	$fdata["InitialYearFactor"] = 100; 
	$fdata["LastYearFactor"] = 10; 
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoices["proforma_invoice_date"]=$fdata;
//	customer_reference
	$fdata = array();
	$fdata["strName"] = "customer_reference";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Customer Reference"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "customer_reference";
	
		$fdata["FullName"]= "customer_reference";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 12;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=100";
		
		
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoices["customer_reference"]=$fdata;
//	customer_reference_date
	$fdata = array();
	$fdata["strName"] = "customer_reference_date";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Customer Reference Date"; 
	
		
		
	$fdata["FieldType"]= 7;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Date";
	$fdata["ViewFormat"]= "Short Date";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "customer_reference_date";
	
		$fdata["FullName"]= "customer_reference_date";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 13;
		$fdata["DateEditType"] = 13; 
	$fdata["InitialYearFactor"] = 100; 
	$fdata["LastYearFactor"] = 10; 
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoices["customer_reference_date"]=$fdata;
//	commercial_invoice_no
	$fdata = array();
	$fdata["strName"] = "commercial_invoice_no";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Invoice No"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "commercial_invoice_no";
	
		$fdata["FullName"]= "commercial_invoice_no";
	
		
		
		
		
		
				$fdata["Index"]= 14;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoices["commercial_invoice_no"]=$fdata;
//	commercial_invoice_date
	$fdata = array();
	$fdata["strName"] = "commercial_invoice_date";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Invoice Date"; 
	
		
		
	$fdata["FieldType"]= 7;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Date";
	$fdata["ViewFormat"]= "Short Date";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "commercial_invoice_date";
	
		$fdata["FullName"]= "commercial_invoice_date";
	
		
		
		
		
		
				$fdata["Index"]= 15;
		$fdata["DateEditType"] = 13; 
	$fdata["InitialYearFactor"] = 100; 
	$fdata["LastYearFactor"] = 10; 
			
		
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoices["commercial_invoice_date"]=$fdata;
//	term_of_sale1
	$fdata = array();
	$fdata["strName"] = "term_of_sale1";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Term Of Sale 1"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "term_of_sale1";
	
		$fdata["FullName"]= "term_of_sale1";
	
		
		
		
		
		
				$fdata["Index"]= 16;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=100";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoices["term_of_sale1"]=$fdata;
//	term_of_sale2
	$fdata = array();
	$fdata["strName"] = "term_of_sale2";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Term Of Sale 2"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "term_of_sale2";
	
		$fdata["FullName"]= "term_of_sale2";
	
		
		
		
		
		
				$fdata["Index"]= 17;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=100";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoices["term_of_sale2"]=$fdata;
//	shipment_mode_id
	$fdata = array();
	$fdata["strName"] = "shipment_mode_id";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Shipment Mode"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="id";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="name";
				$fdata["LookupTable"]="shipment_modes";
	$fdata["LookupOrderBy"]="name";
																$fdata["AllowToAdd"]=true; 
				
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "shipment_mode_id";
	
		$fdata["FullName"]= "shipment_mode_id";
	
		
		
		
		
		
				$fdata["Index"]= 18;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoices["shipment_mode_id"]=$fdata;
//	estimated_shipment_date
	$fdata = array();
	$fdata["strName"] = "estimated_shipment_date";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Estimated Shipment Date"; 
	
		
		
	$fdata["FieldType"]= 7;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Date";
	$fdata["ViewFormat"]= "Short Date";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "estimated_shipment_date";
	
		$fdata["FullName"]= "estimated_shipment_date";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 19;
		$fdata["DateEditType"] = 13; 
	$fdata["InitialYearFactor"] = 100; 
	$fdata["LastYearFactor"] = 10; 
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoices["estimated_shipment_date"]=$fdata;
//	estimated_shipment_date_custom
	$fdata = array();
	$fdata["strName"] = "estimated_shipment_date_custom";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Estimated Shipment Date Custom"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "estimated_shipment_date_custom";
	
		$fdata["FullName"]= "estimated_shipment_date_custom";
	
		
		
		
		
		
				$fdata["Index"]= 20;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoices["estimated_shipment_date_custom"]=$fdata;
//	additional_charges_frieght_type
	$fdata = array();
	$fdata["strName"] = "additional_charges_frieght_type";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Additional Charges Frieght Type"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "additional_charges_frieght_type";
	
		$fdata["FullName"]= "additional_charges_frieght_type";
	
		
		
		
		
		
				$fdata["Index"]= 21;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoices["additional_charges_frieght_type"]=$fdata;
//	additional_charges_legalization
	$fdata = array();
	$fdata["strName"] = "additional_charges_legalization";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Additional Charges Legalization"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "additional_charges_legalization";
	
		$fdata["FullName"]= "additional_charges_legalization";
	
		
		
		
		
		
				$fdata["Index"]= 22;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoices["additional_charges_legalization"]=$fdata;
//	additional_charges_inspection
	$fdata = array();
	$fdata["strName"] = "additional_charges_inspection";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Additional Charges Inspection"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "additional_charges_inspection";
	
		$fdata["FullName"]= "additional_charges_inspection";
	
		
		
		
		
		
				$fdata["Index"]= 23;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoices["additional_charges_inspection"]=$fdata;
//	additional_charges_special_packing
	$fdata = array();
	$fdata["strName"] = "additional_charges_special_packing";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Additional Charges Special Packing"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "additional_charges_special_packing";
	
		$fdata["FullName"]= "additional_charges_special_packing";
	
		
		
		
		
		
				$fdata["Index"]= 24;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoices["additional_charges_special_packing"]=$fdata;
//	others1_key
	$fdata = array();
	$fdata["strName"] = "others1_key";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Others 1 "; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "others1_key";
	
		$fdata["FullName"]= "others1_key";
	
		
		
		
		
		
				$fdata["Index"]= 25;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoices["others1_key"]=$fdata;
//	others2_key
	$fdata = array();
	$fdata["strName"] = "others2_key";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Others 2 "; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "others2_key";
	
		$fdata["FullName"]= "others2_key";
	
		
		
		
		
		
				$fdata["Index"]= 26;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoices["others2_key"]=$fdata;
//	others3_key
	$fdata = array();
	$fdata["strName"] = "others3_key";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Others 3 "; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "others3_key";
	
		$fdata["FullName"]= "others3_key";
	
		
		
		
		
		
				$fdata["Index"]= 27;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoices["others3_key"]=$fdata;
//	others1_value
	$fdata = array();
	$fdata["strName"] = "others1_value";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Others 1 Value"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "others1_value";
	
		$fdata["FullName"]= "others1_value";
	
		
		
		
		
		
				$fdata["Index"]= 28;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoices["others1_value"]=$fdata;
//	others2_value
	$fdata = array();
	$fdata["strName"] = "others2_value";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Others 2 Value"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "others2_value";
	
		$fdata["FullName"]= "others2_value";
	
		
		
		
		
		
				$fdata["Index"]= 29;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoices["others2_value"]=$fdata;
//	others3_value
	$fdata = array();
	$fdata["strName"] = "others3_value";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Others 3 Value"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "others3_value";
	
		$fdata["FullName"]= "others3_value";
	
		
		
		
		
		
				$fdata["Index"]= 30;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoices["others3_value"]=$fdata;
//	payment_term_id
	$fdata = array();
	$fdata["strName"] = "payment_term_id";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Payment Term"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="id";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="payment_term";
				$fdata["LookupTable"]="payment_terms";
	$fdata["LookupOrderBy"]="payment_term";
																$fdata["AllowToAdd"]=true; 
				
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "payment_term_id";
	
		$fdata["FullName"]= "payment_term_id";
	
		
		
		
		
		
				$fdata["Index"]= 31;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoices["payment_term_id"]=$fdata;
//	payment_term_other
	$fdata = array();
	$fdata["strName"] = "payment_term_other";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Payment Term Other"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "payment_term_other";
	
		$fdata["FullName"]= "payment_term_other";
	
		
		
		
		
		
				$fdata["Index"]= 32;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoices["payment_term_other"]=$fdata;
//	bank_name_id
	$fdata = array();
	$fdata["strName"] = "bank_name_id";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Bank Name"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="id";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="company_name";
				$fdata["LookupTable"]="companies";
	$fdata["LookupOrderBy"]="company_name";
							$fdata["LookupWhere"] = "category='Bank'";
										$fdata["AllowToAdd"]=true; 
				
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "bank_name_id";
	
		$fdata["FullName"]= "bank_name_id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 33;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoices["bank_name_id"]=$fdata;
//	bank_term1
	$fdata = array();
	$fdata["strName"] = "bank_term1";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Bank Term 1"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "bank_term1";
	
		$fdata["FullName"]= "bank_term1";
	
		
		
		
		
		
				$fdata["Index"]= 34;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoices["bank_term1"]=$fdata;
//	bank_term2
	$fdata = array();
	$fdata["strName"] = "bank_term2";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Bank Term 2"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "bank_term2";
	
		$fdata["FullName"]= "bank_term2";
	
		
		
		
		
		
				$fdata["Index"]= 35;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoices["bank_term2"]=$fdata;
//	currency_id
	$fdata = array();
	$fdata["strName"] = "currency_id";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Currency "; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="id";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="currency_name";
				$fdata["LookupTable"]="currencies";
	$fdata["LookupOrderBy"]="currency_name";
																$fdata["AllowToAdd"]=true; 
				
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "currency_id";
	
		$fdata["FullName"]= "currency_id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 36;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoices["currency_id"]=$fdata;
//	terms_and_conditions
	$fdata = array();
	$fdata["strName"] = "terms_and_conditions";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Terms And Conditions"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "terms_and_conditions";
	
		$fdata["FullName"]= "terms_and_conditions";
	
		
		
		
		
		
				$fdata["Index"]= 37;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=1500";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproforma_invoices["terms_and_conditions"]=$fdata;

	
$tables_data["proforma_invoices"]=&$tdataproforma_invoices;
$field_labels["proforma_invoices"] = &$fieldLabelsproforma_invoices;
$fieldToolTips["proforma_invoices"] = &$fieldToolTipsproforma_invoices;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["proforma_invoices"] = array();
$dIndex = 1-1;
			$strOriginalDetailsTable="proforma_invoice_items";
	$detailsTablesData["proforma_invoices"][$dIndex] = array(
		  "dDataSourceTable"=>"proforma_invoice_items"
		, "dOriginalTable"=>$strOriginalDetailsTable
		, "dShortTable"=>"proforma_invoice_items"
		, "masterKeys"=>array()
		, "detailKeys"=>array()
		, "dispChildCount"=> "1"
		, "hideChild"=>"0"
		, "sqlHead"=>"SELECT id,   proforma_commercial_id,   part_no,   uom_id,   quantity,   description,   unit_price,   total_price"	
		, "sqlFrom"=>"FROM proforma_invoice_items"	
		, "sqlWhere"=>""
		, "sqlTail"=>""
		, "groupBy"=>"0"
		, "previewOnList" => 1
		, "previewOnAdd" => 1
		, "previewOnEdit" => 1
		, "previewOnView" => 1
	);	
		$detailsTablesData["proforma_invoices"][$dIndex]["masterKeys"][]="id";
		$detailsTablesData["proforma_invoices"][$dIndex]["detailKeys"][]="proforma_commercial_id";


	
// tables which are master tables for current table (detail)
$masterTablesData["proforma_invoices"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto23=array();
$proto23["m_strHead"] = "SELECT";
$proto23["m_strFieldList"] = "id,  account_id,  'account_address' AS account_address,  buyer_id,  '1' AS buyer_address,  consignee_id,  '1' AS consignee_address,  notify_id,  '1' AS notify_address,  proforma_invoice_no,  proforma_invoice_date,  customer_reference,  customer_reference_date,  commercial_invoice_no,  commercial_invoice_date,  term_of_sale1,  term_of_sale2,  shipment_mode_id,  estimated_shipment_date,  estimated_shipment_date_custom,  additional_charges_frieght_type,  additional_charges_legalization,  additional_charges_inspection,  additional_charges_special_packing,  others1_key,  others2_key,  others3_key,  others1_value,  others2_value,  others3_value,  payment_term_id,  payment_term_other,  bank_name_id,  bank_term1,  bank_term2,  currency_id,  terms_and_conditions";
$proto23["m_strFrom"] = "FROM proforma_invoices";
$proto23["m_strWhere"] = "";
$proto23["m_strOrderBy"] = "";
$proto23["m_strTail"] = "";
$proto24=array();
$proto24["m_sql"] = "";
$proto24["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto24["m_column"]=$obj;
$proto24["m_contained"] = array();
$proto24["m_strCase"] = "";
$proto24["m_havingmode"] = "0";
$proto24["m_inBrackets"] = "0";
$proto24["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto24);

$proto23["m_where"] = $obj;
$proto26=array();
$proto26["m_sql"] = "";
$proto26["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto26["m_column"]=$obj;
$proto26["m_contained"] = array();
$proto26["m_strCase"] = "";
$proto26["m_havingmode"] = "0";
$proto26["m_inBrackets"] = "0";
$proto26["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto26);

$proto23["m_having"] = $obj;
$proto23["m_fieldlist"] = array();
						$proto28=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "proforma_invoices"
));

$proto28["m_expr"]=$obj;
$proto28["m_alias"] = "";
$obj = new SQLFieldListItem($proto28);

$proto23["m_fieldlist"][]=$obj;
						$proto30=array();
			$obj = new SQLField(array(
	"m_strName" => "account_id",
	"m_strTable" => "proforma_invoices"
));

$proto30["m_expr"]=$obj;
$proto30["m_alias"] = "";
$obj = new SQLFieldListItem($proto30);

$proto23["m_fieldlist"][]=$obj;
						$proto32=array();
			$obj = new SQLNonParsed(array(
	"m_sql" => "'account_address'"
));

$proto32["m_expr"]=$obj;
$proto32["m_alias"] = "account_address";
$obj = new SQLFieldListItem($proto32);

$proto23["m_fieldlist"][]=$obj;
						$proto34=array();
			$obj = new SQLField(array(
	"m_strName" => "buyer_id",
	"m_strTable" => "proforma_invoices"
));

$proto34["m_expr"]=$obj;
$proto34["m_alias"] = "";
$obj = new SQLFieldListItem($proto34);

$proto23["m_fieldlist"][]=$obj;
						$proto36=array();
			$obj = new SQLNonParsed(array(
	"m_sql" => "'1'"
));

$proto36["m_expr"]=$obj;
$proto36["m_alias"] = "buyer_address";
$obj = new SQLFieldListItem($proto36);

$proto23["m_fieldlist"][]=$obj;
						$proto38=array();
			$obj = new SQLField(array(
	"m_strName" => "consignee_id",
	"m_strTable" => "proforma_invoices"
));

$proto38["m_expr"]=$obj;
$proto38["m_alias"] = "";
$obj = new SQLFieldListItem($proto38);

$proto23["m_fieldlist"][]=$obj;
						$proto40=array();
			$obj = new SQLNonParsed(array(
	"m_sql" => "'1'"
));

$proto40["m_expr"]=$obj;
$proto40["m_alias"] = "consignee_address";
$obj = new SQLFieldListItem($proto40);

$proto23["m_fieldlist"][]=$obj;
						$proto42=array();
			$obj = new SQLField(array(
	"m_strName" => "notify_id",
	"m_strTable" => "proforma_invoices"
));

$proto42["m_expr"]=$obj;
$proto42["m_alias"] = "";
$obj = new SQLFieldListItem($proto42);

$proto23["m_fieldlist"][]=$obj;
						$proto44=array();
			$obj = new SQLNonParsed(array(
	"m_sql" => "'1'"
));

$proto44["m_expr"]=$obj;
$proto44["m_alias"] = "notify_address";
$obj = new SQLFieldListItem($proto44);

$proto23["m_fieldlist"][]=$obj;
						$proto46=array();
			$obj = new SQLField(array(
	"m_strName" => "proforma_invoice_no",
	"m_strTable" => "proforma_invoices"
));

$proto46["m_expr"]=$obj;
$proto46["m_alias"] = "";
$obj = new SQLFieldListItem($proto46);

$proto23["m_fieldlist"][]=$obj;
						$proto48=array();
			$obj = new SQLField(array(
	"m_strName" => "proforma_invoice_date",
	"m_strTable" => "proforma_invoices"
));

$proto48["m_expr"]=$obj;
$proto48["m_alias"] = "";
$obj = new SQLFieldListItem($proto48);

$proto23["m_fieldlist"][]=$obj;
						$proto50=array();
			$obj = new SQLField(array(
	"m_strName" => "customer_reference",
	"m_strTable" => "proforma_invoices"
));

$proto50["m_expr"]=$obj;
$proto50["m_alias"] = "";
$obj = new SQLFieldListItem($proto50);

$proto23["m_fieldlist"][]=$obj;
						$proto52=array();
			$obj = new SQLField(array(
	"m_strName" => "customer_reference_date",
	"m_strTable" => "proforma_invoices"
));

$proto52["m_expr"]=$obj;
$proto52["m_alias"] = "";
$obj = new SQLFieldListItem($proto52);

$proto23["m_fieldlist"][]=$obj;
						$proto54=array();
			$obj = new SQLField(array(
	"m_strName" => "commercial_invoice_no",
	"m_strTable" => "proforma_invoices"
));

$proto54["m_expr"]=$obj;
$proto54["m_alias"] = "";
$obj = new SQLFieldListItem($proto54);

$proto23["m_fieldlist"][]=$obj;
						$proto56=array();
			$obj = new SQLField(array(
	"m_strName" => "commercial_invoice_date",
	"m_strTable" => "proforma_invoices"
));

$proto56["m_expr"]=$obj;
$proto56["m_alias"] = "";
$obj = new SQLFieldListItem($proto56);

$proto23["m_fieldlist"][]=$obj;
						$proto58=array();
			$obj = new SQLField(array(
	"m_strName" => "term_of_sale1",
	"m_strTable" => "proforma_invoices"
));

$proto58["m_expr"]=$obj;
$proto58["m_alias"] = "";
$obj = new SQLFieldListItem($proto58);

$proto23["m_fieldlist"][]=$obj;
						$proto60=array();
			$obj = new SQLField(array(
	"m_strName" => "term_of_sale2",
	"m_strTable" => "proforma_invoices"
));

$proto60["m_expr"]=$obj;
$proto60["m_alias"] = "";
$obj = new SQLFieldListItem($proto60);

$proto23["m_fieldlist"][]=$obj;
						$proto62=array();
			$obj = new SQLField(array(
	"m_strName" => "shipment_mode_id",
	"m_strTable" => "proforma_invoices"
));

$proto62["m_expr"]=$obj;
$proto62["m_alias"] = "";
$obj = new SQLFieldListItem($proto62);

$proto23["m_fieldlist"][]=$obj;
						$proto64=array();
			$obj = new SQLField(array(
	"m_strName" => "estimated_shipment_date",
	"m_strTable" => "proforma_invoices"
));

$proto64["m_expr"]=$obj;
$proto64["m_alias"] = "";
$obj = new SQLFieldListItem($proto64);

$proto23["m_fieldlist"][]=$obj;
						$proto66=array();
			$obj = new SQLField(array(
	"m_strName" => "estimated_shipment_date_custom",
	"m_strTable" => "proforma_invoices"
));

$proto66["m_expr"]=$obj;
$proto66["m_alias"] = "";
$obj = new SQLFieldListItem($proto66);

$proto23["m_fieldlist"][]=$obj;
						$proto68=array();
			$obj = new SQLField(array(
	"m_strName" => "additional_charges_frieght_type",
	"m_strTable" => "proforma_invoices"
));

$proto68["m_expr"]=$obj;
$proto68["m_alias"] = "";
$obj = new SQLFieldListItem($proto68);

$proto23["m_fieldlist"][]=$obj;
						$proto70=array();
			$obj = new SQLField(array(
	"m_strName" => "additional_charges_legalization",
	"m_strTable" => "proforma_invoices"
));

$proto70["m_expr"]=$obj;
$proto70["m_alias"] = "";
$obj = new SQLFieldListItem($proto70);

$proto23["m_fieldlist"][]=$obj;
						$proto72=array();
			$obj = new SQLField(array(
	"m_strName" => "additional_charges_inspection",
	"m_strTable" => "proforma_invoices"
));

$proto72["m_expr"]=$obj;
$proto72["m_alias"] = "";
$obj = new SQLFieldListItem($proto72);

$proto23["m_fieldlist"][]=$obj;
						$proto74=array();
			$obj = new SQLField(array(
	"m_strName" => "additional_charges_special_packing",
	"m_strTable" => "proforma_invoices"
));

$proto74["m_expr"]=$obj;
$proto74["m_alias"] = "";
$obj = new SQLFieldListItem($proto74);

$proto23["m_fieldlist"][]=$obj;
						$proto76=array();
			$obj = new SQLField(array(
	"m_strName" => "others1_key",
	"m_strTable" => "proforma_invoices"
));

$proto76["m_expr"]=$obj;
$proto76["m_alias"] = "";
$obj = new SQLFieldListItem($proto76);

$proto23["m_fieldlist"][]=$obj;
						$proto78=array();
			$obj = new SQLField(array(
	"m_strName" => "others2_key",
	"m_strTable" => "proforma_invoices"
));

$proto78["m_expr"]=$obj;
$proto78["m_alias"] = "";
$obj = new SQLFieldListItem($proto78);

$proto23["m_fieldlist"][]=$obj;
						$proto80=array();
			$obj = new SQLField(array(
	"m_strName" => "others3_key",
	"m_strTable" => "proforma_invoices"
));

$proto80["m_expr"]=$obj;
$proto80["m_alias"] = "";
$obj = new SQLFieldListItem($proto80);

$proto23["m_fieldlist"][]=$obj;
						$proto82=array();
			$obj = new SQLField(array(
	"m_strName" => "others1_value",
	"m_strTable" => "proforma_invoices"
));

$proto82["m_expr"]=$obj;
$proto82["m_alias"] = "";
$obj = new SQLFieldListItem($proto82);

$proto23["m_fieldlist"][]=$obj;
						$proto84=array();
			$obj = new SQLField(array(
	"m_strName" => "others2_value",
	"m_strTable" => "proforma_invoices"
));

$proto84["m_expr"]=$obj;
$proto84["m_alias"] = "";
$obj = new SQLFieldListItem($proto84);

$proto23["m_fieldlist"][]=$obj;
						$proto86=array();
			$obj = new SQLField(array(
	"m_strName" => "others3_value",
	"m_strTable" => "proforma_invoices"
));

$proto86["m_expr"]=$obj;
$proto86["m_alias"] = "";
$obj = new SQLFieldListItem($proto86);

$proto23["m_fieldlist"][]=$obj;
						$proto88=array();
			$obj = new SQLField(array(
	"m_strName" => "payment_term_id",
	"m_strTable" => "proforma_invoices"
));

$proto88["m_expr"]=$obj;
$proto88["m_alias"] = "";
$obj = new SQLFieldListItem($proto88);

$proto23["m_fieldlist"][]=$obj;
						$proto90=array();
			$obj = new SQLField(array(
	"m_strName" => "payment_term_other",
	"m_strTable" => "proforma_invoices"
));

$proto90["m_expr"]=$obj;
$proto90["m_alias"] = "";
$obj = new SQLFieldListItem($proto90);

$proto23["m_fieldlist"][]=$obj;
						$proto92=array();
			$obj = new SQLField(array(
	"m_strName" => "bank_name_id",
	"m_strTable" => "proforma_invoices"
));

$proto92["m_expr"]=$obj;
$proto92["m_alias"] = "";
$obj = new SQLFieldListItem($proto92);

$proto23["m_fieldlist"][]=$obj;
						$proto94=array();
			$obj = new SQLField(array(
	"m_strName" => "bank_term1",
	"m_strTable" => "proforma_invoices"
));

$proto94["m_expr"]=$obj;
$proto94["m_alias"] = "";
$obj = new SQLFieldListItem($proto94);

$proto23["m_fieldlist"][]=$obj;
						$proto96=array();
			$obj = new SQLField(array(
	"m_strName" => "bank_term2",
	"m_strTable" => "proforma_invoices"
));

$proto96["m_expr"]=$obj;
$proto96["m_alias"] = "";
$obj = new SQLFieldListItem($proto96);

$proto23["m_fieldlist"][]=$obj;
						$proto98=array();
			$obj = new SQLField(array(
	"m_strName" => "currency_id",
	"m_strTable" => "proforma_invoices"
));

$proto98["m_expr"]=$obj;
$proto98["m_alias"] = "";
$obj = new SQLFieldListItem($proto98);

$proto23["m_fieldlist"][]=$obj;
						$proto100=array();
			$obj = new SQLField(array(
	"m_strName" => "terms_and_conditions",
	"m_strTable" => "proforma_invoices"
));

$proto100["m_expr"]=$obj;
$proto100["m_alias"] = "";
$obj = new SQLFieldListItem($proto100);

$proto23["m_fieldlist"][]=$obj;
$proto23["m_fromlist"] = array();
												$proto102=array();
$proto102["m_link"] = "SQLL_MAIN";
			$proto103=array();
$proto103["m_strName"] = "proforma_invoices";
$proto103["m_columns"] = array();
$proto103["m_columns"][] = "id";
$proto103["m_columns"][] = "account_id";
$proto103["m_columns"][] = "buyer_id";
$proto103["m_columns"][] = "consignee_id";
$proto103["m_columns"][] = "notify_id";
$proto103["m_columns"][] = "proforma_invoice_no";
$proto103["m_columns"][] = "proforma_invoice_date";
$proto103["m_columns"][] = "customer_reference";
$proto103["m_columns"][] = "customer_reference_date";
$proto103["m_columns"][] = "commercial_invoice_no";
$proto103["m_columns"][] = "commercial_invoice_date";
$proto103["m_columns"][] = "term_of_sale1";
$proto103["m_columns"][] = "term_of_sale2";
$proto103["m_columns"][] = "shipment_mode_id";
$proto103["m_columns"][] = "estimated_shipment_date";
$proto103["m_columns"][] = "estimated_shipment_date_custom";
$proto103["m_columns"][] = "additional_charges_frieght_type";
$proto103["m_columns"][] = "additional_charges_legalization";
$proto103["m_columns"][] = "additional_charges_inspection";
$proto103["m_columns"][] = "additional_charges_special_packing";
$proto103["m_columns"][] = "others1_key";
$proto103["m_columns"][] = "others2_key";
$proto103["m_columns"][] = "others3_key";
$proto103["m_columns"][] = "others1_value";
$proto103["m_columns"][] = "others2_value";
$proto103["m_columns"][] = "others3_value";
$proto103["m_columns"][] = "payment_term_id";
$proto103["m_columns"][] = "payment_term_other";
$proto103["m_columns"][] = "bank_name_id";
$proto103["m_columns"][] = "bank_term1";
$proto103["m_columns"][] = "bank_term2";
$proto103["m_columns"][] = "currency_id";
$proto103["m_columns"][] = "terms_and_conditions";
$obj = new SQLTable($proto103);

$proto102["m_table"] = $obj;
$proto102["m_alias"] = "";
$proto104=array();
$proto104["m_sql"] = "";
$proto104["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto104["m_column"]=$obj;
$proto104["m_contained"] = array();
$proto104["m_strCase"] = "";
$proto104["m_havingmode"] = "0";
$proto104["m_inBrackets"] = "0";
$proto104["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto104);

$proto102["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto102);

$proto23["m_fromlist"][]=$obj;
$proto23["m_groupby"] = array();
$proto23["m_orderby"] = array();
$obj = new SQLQuery($proto23);

$queryData_proforma_invoices = $obj;
$tdataproforma_invoices[".sqlquery"] = $queryData_proforma_invoices;

include(getabspath("include/proforma_invoices_events.php"));
$tableEvents["proforma_invoices"] = new eventclass_proforma_invoices;

?>
